/*
 * Created by Huang 嵘才 on 18-2-7 上午11:22
 * Copyright (c) 2018. All rights reserved.
 * Last modified 18-2-5 上午11:07
 */

package io.esirong.image;

/**
 * LoaderOptions 加载配置
 * Created by 黄嵘才(HuangRc) on 2018/2/1.
 */

public final class LoaderOptions {


    /**
     * 默认的图像加载配置
     */
    public static ImageLoaderOptions OPTIONS_DEFAULT =
            new ImageLoaderOptions.Builder()
                    .asGif(true)
                    .placeholder(R.drawable.ic_image_loader_default)
                    .error(R.drawable.ic_image_loader_failure_image_default)
                    .blurImage(false)
                    .isCrossFade(true)
                    .build();
    /**
     * 默认的本地资源图像加载配置
     */
    public static ImageLoaderOptions OPTIONS_DEFAULT_RES =
            new ImageLoaderOptions.Builder()
                    .asGif(true)
                    .placeholder(R.drawable.ic_image_loader_default)
                    .error(R.drawable.ic_image_loader_failure_image_default)
                    .blurImage(false)
                    .diskCacheStrategy(ImageLoaderOptions.DiskCacheStrategy.NONE)
                    .isCrossFade(true)
                    .build();

    public static ImageLoaderOptions.Builder getBuilder() {
        return new ImageLoaderOptions.Builder();
    }
}
